package com.ybwh.springboot1.model.vo;


import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@ApiModel(description="数据模型")
@Data
public class AreaVo {


    /**
     * 地区名
     */
	@ApiModelProperty(value="地区名")
	@NotBlank(message="不能为空")
	@Size(min=5,message="长度至少为5")
    private String areaName;



    /**
     * 地区编码
     */
	@ApiModelProperty(value="地区编码")
    private Integer areaCode;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}